package com.xiaojie.service.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:feign客户端调用接口
 * @Author: yan
 * @Date: 2021/5/13 23:25
 * @param null:
 * @return: null
 **/
@FeignClient("xiaojie-member")
public interface MemberServiceFeign {

    /**
     * 提供我们发布的接口
     *
     * @param userId
     * @return
     */
    @GetMapping("/getUser")
    String getUser(@RequestParam("userId") Integer userId);
}
